package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.engine4cloud.tdf.common.core.constant.enums.CorElectronicFenceRuleTypeEnum;
import com.engine4cloud.tdf.common.core.constant.enums.ElectronicFenceTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 矫正对象电子围栏
 *
 * @author wenjie
 * @date 2024-04-22 16:05:12
 */
@Data
@TableName("jzdx_electronic_fence")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "矫正对象电子围栏")
public class JzdxElectronicFenceEntity extends Model<JzdxElectronicFenceEntity> {


    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private Long id;

    /**
     * 矫正对象编号
     */
    @Schema(description = "矫正对象编号")
    private String rybh;

    /**
     * 围栏编号-唯一标识
     */
    @Schema(description = "围栏编号-唯一标识")
    private String lcbh;

    /**
     * 围栏类型
     */
    @Schema(description = "围栏类型")
    private ElectronicFenceTypeEnum wllx;

    /**
     * 限制规则
     */
    @Schema(description = "限制规则")
    private CorElectronicFenceRuleTypeEnum xzgz;

    /**
     * 行政区划围栏编号
     */
    @Schema(description = "行政区划围栏编号")
    private String wlbh;

    /**
     * 围栏名称
     */
    @Schema(description = "围栏名称")
    private String wlmc;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}